package com.example.easyexcel.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AssetReportInfo {

    // ========== Excel映射字段（顺序与Excel一致） ==========
    @ExcelProperty(value = "系统名称", index = 1)
    private String systemName;

    @ExcelProperty(value = "报表编号", index = 2)
    private String reportNo;

    @ExcelProperty(value = "报表名称", index = 3)
    private String reportName;

    @ExcelProperty(value = "报表说明", index = 4)
    private String reportDescr;

    @ExcelProperty(value = "管理系统", index = 5)
    private String managementSystem;

    @ExcelProperty(value = "管理系统路径", index = 6)
    private String managementSystemPath;

    @ExcelProperty(value = "报表状态", index = 7)
    private String reportStatus;
    //这里有问题
    @ExcelProperty(value = "说明", index = 8)
    private String descr;

    @ExcelProperty(value = "时效性", index = 9)
    private String timeliness;

    @ExcelProperty(value = "时效说明", index = 10)
    private String timelinessDescr;

    @ExcelProperty(value = "数据查询范围", index = 11)
    private String dataQueryRange;

    // ========== 数据库专用字段（Excel忽略） ==========
    @ExcelIgnore
    private String reportId;

    @ExcelIgnore
    private String assetNo;

    @ExcelIgnore
    private Integer reportSc; // 转换后的状态码

    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private LocalDateTime updateTime;

    @ExcelIgnore
    private Long delFlag;

    @ExcelIgnore
    private LocalDateTime delTime;
}
